package com.example.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.pojo.Headline;
import com.example.pojo.vo.PortalVo;
import com.example.utils.Result;

/**
 * @author wqe
 * @description 针对表【news_headline】的数据库操作Service
 * @createDate 2024-03-14 11:32:59
 */
public interface HeadlineService extends IService<Headline> {

    Result findNewsPage(PortalVo portalVo);

    /**
     * 修改阅读量 +1
     * 多表查询 需要自定义sql语句
     *
     * @param hid
     * @return
     */
    Result showHeadlineDetail(Integer hid);

    Result publish(Headline headline, String token);

    Result updateData(Headline headline);
}
